home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / ftp / documents / appnotes / 016_030 / 020c / Text
Encoding:
Text File  |  1993-08-02  |  5.7 KB  |  192 lines

  1. -----------------------------------------------------------------------------
  2. 8th July 1992
  3. -----------------------------------------------------------------------------
  4. Support Group Application Note
  5. Number: 020
  6. Issue: 1
  7. Author:
  8. -----------------------------------------------------------------------------
  9.  
  10. *FX/Osbyte features not documented in the BBC Micro User Guide
  11.  
  12. -----------------------------------------------------------------------------
  13. Applicable Hardware: BBC B
  14.                      BBC B+
  15.                      
  16. Related Application Notes:
  17.  
  18.  
  19. -----------------------------------------------------------------------------
  20. Copyright (C) Acorn Computers Limited 1992
  21.  
  22. Every effort has been made to ensure that the information in this leaflet is 
  23. true and correct at the time of printing. However, the products described in
  24. this leaflet are subject to continuous development and improvements and
  25. Acorn Computers Limited reserves the right to change its specifications at
  26. any time. Acorn Computers Limited cannot accept liability for any loss or
  27. damage arising from the use of any information or particulars in this
  28. leaflet. ACORN, ECONET and ARCHIMEDES are trademarks of Acorn Computers
  29. Limited.
  30. -----------------------------------------------------------------------------
  31. Support Group
  32. Acorn Computers Limited
  33. Acorn House
  34. Vision Park
  35. Histon
  36. Cambridge       CB4 4AE
  37. -----------------------------------------------------------------------------
  38.  
  39. &0D  (13)
  40. Two undocumented parameters may be supplied in X to disable events:
  41.  
  42.         X = 7  disable RS423 receive error event
  43.         X = 8  disable service/network error event
  44.  
  45.  
  46. &0E  (14)
  47. As above, two undocumented parameters may be supplied in X to enable events:
  48.  
  49.         X = 7  enable RS423 receive error event
  50.         X = 8  enable service/network error event
  51.  
  52. Events are explained on p465 of the User Guide.
  53.  
  54.  
  55. &76  (117)
  56. This call returns the VDU status byte (which contains various status flags)
  57. in the X register. 
  58.  
  59.         BIT 0 - set if VDU2 sent, cleared by VDU3
  60.         BIT 2 - set if PAGED MODE ON,  cleared if PAGED MODE OFF
  61.         BIT 3 - set if software scrolling, cleared if hardware scrolling
  62.  
  63. Software scrolling is used when text windows have been defined whereas
  64. hardware scrolls are used when the whole screen scrolls. 
  65.  
  66.         BIT 5 - set when cursors joined by VDU5
  67.         BIT 7 - set if VDU disabled
  68.  
  69.  
  70. &76  (118)
  71. Returns with the carry bit if the CTRL key is pressed, and with the Negative
  72. bit set if the SHIFT key is pressed. Machine code routines may branch on
  73. these conditions.  This feature is invalid when called from a Second
  74. Processor.
  75.  
  76.  
  77. &7B  (123)
  78. This call is used by the User Print Routine to indicate to the MOS that it
  79. has finished its task.  (CF *FX 5.3 command). This feature should not
  80. normally be called from a Second Processor.
  81.  
  82.  
  83. &8A  (138)
  84. This call has been expanded to allow a character to be inserted into any
  85. buffer.  X must contain the buffer number, and Y the character to be
  86. inserted. A list of buffer numbers appears with *FX 21 on p428 of the User
  87. Guide.
  88.  
  89.  
  90. &8D  (141)
  91. This command is exactly equivalent to the *ROM command.
  92.  
  93.  
  94. &98  (152)
  95. This call examines a buffer. The buffer number must be in X, and the call
  96. returns as follows:
  97.  
  98.         Carry bit set if buffer empty
  99.         Carry bit clear indicates character(s) present in buffer.
  100.  
  101. Note that no character has been removed from the buffer.
  102.  
  103.  
  104. &99  (153)
  105. The call inserts a character into an INPUT buffer handling the interrupt
  106. character, and generating an escape condition if necessary. 
  107.  
  108.         Valid only for X = 0 or 1
  109.         Y must contain character to be inserted
  110.  
  111.  
  112. &9C  (156)
  113. Change 6850 control register. The 6859 register is altered to:  (Old value
  114. AND Y) EOR X.  (See User Guide page 438).
  115.  
  116. Refer to the 6850 Data Sheet for details of the 6850 control register.
  117.  
  118.  
  119. &9E  (158) / &9F (159)
  120. These calls respectively read and write to the Speech Processor chip. Refer
  121. to the Speech System User Guide.
  122.  
  123.  
  124. &E9  (233)
  125. As for &E7 (see User Guide page 441) but affects the system 6522. The system
  126. 6522 is used extensively in the normal operation of the machine and
  127. consequently this call should be used with extreme care.
  128.  
  129.  
  130. &EB  (235)
  131. Return presence of Speech Processor.
  132.  
  133.         X = &FF if Speech Processor present
  134.         X = &00 if Speech Processor not present
  135.  
  136.  
  137. &F1  (241)
  138. Read/Write *FX1 value.
  139.  
  140.  
  141. &F5  (245)
  142. Read/Write *FX5 value.
  143.  
  144.  
  145.  
  146.  
  147. &F6  (246)
  148. Read/Write *FX6 value.
  149.  
  150. THESE THREE CALLS OPERATE AS DESCRIBED IN THE USER GUIDE ON PAGE 438.
  151.  
  152.  
  153. &FC  (252)
  154. Reads ID of current language, a number from 0 to 15 which indicates which
  155. socket the presently selected language ROM is in. The sockets are numbered
  156. from right to left starting at 15. On board sockets are 15, 14, 13, 12; and
  157. the remainder can be installed offboard. This call may not be meaningful
  158. from a Second Processor, since there may not necessarily be a current
  159. language in this case.
  160.  
  161.  
  162. &FD  (253)
  163. Returns a number indicating what sort of reset last occurred:
  164.  
  165.         0 = Soft Break
  166.         1 = Power-on Break
  167.         2 = CTRL Break
  168.  
  169.  
  170. &FE  (254)
  171. Read/Write available RAM in BBC microcomputer (even when called from Second
  172. Processor).
  173.  
  174.         128 = 32K
  175.           64 = 16K
  176.  
  177.  
  178. &FF  (255)
  179. Read/Write start up option byte. This allows the keyboard link value to be
  180. read:  it may be written to, but the value will be reset to the actual wired
  181. value on any reset other than a soft-reset. The links are configured as
  182. follows:
  183.  
  184.         1      2      3       4       5      6      7      8
  185.         X      X      D       D       B      M      M      M
  186.                        2       1              3      2      1
  187.         
  188. D2, D1 : Disc configuration bits (see Disc Manual).
  189. B : Auto-boot select (Auto-boot when fitted).
  190. M3, M2, M1 : Screen mode on hard reset (0-7)
  191. X : Unused.
  192.